package com.atguigu.dga230315.governance.demo;

public class DateDiffDemo {
    public static void main(String[] args) throws InterruptedException {
        long curTime = System.currentTimeMillis();
        System.out.println(curTime);
        System.out.println("精确到天："+curTime/1000/60/60/24);

        Thread.sleep(5000);

        long last5sTime = System.currentTimeMillis();
        System.out.println(last5sTime);
        System.out.println("精确到天："+curTime/1000/60/60/24);
    }
}
